package com.camunda.workflow.camunda.provider;

import org.camunda.bpm.engine.AuthorizationService;
import org.camunda.bpm.engine.authorization.Authorization;
import org.camunda.bpm.engine.authorization.AuthorizationQuery;
import org.camunda.bpm.engine.authorization.Permission;
import org.camunda.bpm.engine.authorization.Resource;
import org.camunda.bpm.engine.impl.persistence.entity.AuthorizationEntity;

import java.util.List;

/**
 * 自定义授权服务
 */
public class CustomAuthorizationService implements AuthorizationService {
    @Override
    public Authorization createNewAuthorization(int i) {
        // 创建新的授权
        AuthorizationEntity entity = new AuthorizationEntity();
        return null;
    }

    @Override
    public Authorization saveAuthorization(Authorization authorization) {
        return null;
    }

    @Override
    public void deleteAuthorization(String s) {

    }

    @Override
    public AuthorizationQuery createAuthorizationQuery() {
        return null;
    }

    @Override
    public boolean isUserAuthorized(String s, List<String> list, Permission permission, Resource resource) {
        return false;
    }

    @Override
    public boolean isUserAuthorized(String s, List<String> list, Permission permission, Resource resource, String s1) {
        return false;
    }
}
